import request from '@/utils/request'

// 查询用户赠送礼物日志列表
export function listUserGiftDetail(query) {
  return request({
    url: '/system/userGiftDetail/list',
    method: 'get',
    params: query
  })
}

// 查询用户赠送礼物日志详细
export function getUserGiftDetail(id) {
  return request({
    url: '/system/userGiftDetail/' + id,
    method: 'get'
  })
}

// 新增用户赠送礼物日志
export function addUserGiftDetail(data) {
  return request({
    url: '/system/userGiftDetail',
    method: 'post',
    data: data
  })
}

// 修改用户赠送礼物日志
export function updateUserGiftDetail(data) {
  return request({
    url: '/system/userGiftDetail',
    method: 'put',
    data: data
  })
}

// 删除用户赠送礼物日志
export function delUserGiftDetail(id) {
  return request({
    url: '/system/userGiftDetail/' + id,
    method: 'delete'
  })
}

// 导出用户赠送礼物日志
export function exportUserGiftDetail(query) {
  return request({
    url: '/system/userGiftDetail/export',
    method: 'get',
    params: query
  })
}